<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!doctype html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>新增用户</title>
    <link rel="stylesheet" type="text/css" href="css/common.css"/>
    <link rel="stylesheet" type="text/css" href="css/main.css"/>
</head>
<body>
	
	<!-- 菜单 -->
	<%@ include file="admin_menu.jsp" %>
	
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="admin_index.jsp">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="admin_productselect">图书管理</a><span class="crumb-step">&gt;</span><span>新增图书</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="/CourseDesign4/manage/admin_doproductadd" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
                        	<tr>
                                <th><i class="require-red">*</i>图书名称：</th>
                                <td>
                                    <input class="common-text required" id="name" name="productname" size="50" value="" type="text">
                                </td>
                            </tr>
                        	
                            <tr>
                                <th><i class="require-red">*</i>图书分类：</th>
                                <td>
                                    <select class="common-text required" name="parent_id" width="100px">
                                    	<c:forEach items="${flist}" var="f">
                                    		<option value="${f.id}" disabled="disabled">|-${f.name}</option>
                                    		<c:forEach items="${clist}" var="c">
                                    			<c:if test="${c.parent_id==f.id}">
	                                    			<option value="${f.id}-${c.id}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|-${c.name}</option>
	                                    		</c:if>
                                    		</c:forEach>
	                                    		
                                    	</c:forEach>
                                    </select>
                                </td>
                            </tr>
                            
                            <tr>
                                <th><i class="require-red">*</i>图书图片：</th>
                                <td>
                                    <input class="common-text required" id="name" name="photo" size="50" value="" type="file">
                                </td>
                            </tr>
                            
                            <tr>
                                <th><i class="require-red">*</i>图书价格：</th>
                                <td>
                                    <input class="common-text required" id="name" name="productvalue" size="50" value="" type="text">
                                </td>
                            </tr>
                            
                            <tr>
                                <th><i class="require-red">*</i>图书描述：</th>
                                <td>
                                    <input class="common-text required" id="name" name="desc" size="50" value="" type="text">
                                </td>
                            </tr>
                            
                            <tr>
                                <th><i class="require-red">*</i>图书库存：</th>
                                <td>
                                    <input class="common-text required" id="name" name="number" size="50" value="1" type="text">
                                </td>
                            </tr>
                            
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onClick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
</body>
</html>